]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
LookingGlass: add GObject and Gio to the ns available inline
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 6 Mar 2014 15:20:04 +0000 (16:20 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 6 Mar 2014 15:57:41 +0000 (16:57 +0100)
Having to go through import.gi is awfully inconvenient when one
is using the looking glass as a quick gjs console, and we're
already importing all sorts of stuff there.

https://bugzilla.gnome.org/show_bug.cgi?id=725832

js/ui/lookingGlass.js

index 5c54d931bd67cbd248cf72fd38b8c62cf73b1dd3..9c2966a60dfa69395edf5fc5badd98891fa07585 100644 (file)
@@ -27,6 +27,8 @@ const CHEVRON = '>>> ';
 /* Imports...feel free to add here as needed */
 var commandHeader = 'const Clutter = imports.gi.Clutter; ' +
                     'const GLib = imports.gi.GLib; ' +
+                    'const GObject = imports.gi.GObject; ' +
+                    'const Gio = imports.gi.Gio; ' +
                     'const Gtk = imports.gi.Gtk; ' +
                     'const Mainloop = imports.mainloop; ' +
                     'const Meta = imports.gi.Meta; ' +